/**
 * 移动文件
 * @param source  源文件路径
 * @param dest  目标文件路径
 * @throws IOException
 */
public static void moveFile(String source, String dest)
		throws IOException {
	//先复制文件
	copyFile(source, dest);
	//再删除文件
	File src = new File(source);
	if (src.exists() && src.canRead()) {
		if (src.delete()) {
			System.out.println("Source file was deleted");
		} else {
			src.deleteOnExit();
		}
	} else {
		System.out.println("Source file could not be accessed for removal");
	}
}
